package com.pmcc.platform.base.entity;

import com.pmcc.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 文件表
 */
@Getter
@Setter
@Entity
@Table(name = "BP_FILE")
public class FileEntity extends BaseEntity {

    @Column(name = "BUSINESS_MODEL", length = 100)
    private String businessModel;//业务模块

    @Column(name = "FILE_NAME", length = 100)
    private String fileName;//名称

    @Column(name = "FILE_URL", length = 500)
    private String fileUrl;//下载地址

    @Column(name = "FILE_MAC_URL", length = 500)
    private String fileMacUrl;//物理地址

    @Column(name = "FILE_QR_URL", length = 500)
    private String fileQRUrl;//文件二维码下载地址

    @Column(name = "FILE_ALIAS_NAME", length = 100)
    private String fileAliasName;//附件转换名称

    @Column(name = "FILE_TYPE", length = 11)
    private String fileType;//附件类型

    @Column(name = "FILE_SIZE")
    private Long fileSize;//附件大小(单位B)

}
